package com.bobochang.warehouse.mapper;

import com.bobochang.warehouse.dto.CollectSettleAccountsDto;
import com.bobochang.warehouse.dto.ConstructionDetailsCollectDto;
import com.bobochang.warehouse.dto.ProductCollectDto;
import com.bobochang.warehouse.entity.DailyConstruction;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
* @author bobochang
* @description 针对表【daily_construction(每日施工情况表)】的数据库操作Mapper
* @createDate 2024-06-25 10:25:42
* @Entity generator.domain.DailyConstruction
*/

@Mapper
public interface DailyConstructionMapper extends BaseMapper<DailyConstruction> {

    List<ConstructionDetailsCollectDto> collect(Integer contractId, Integer locationId);

    Date findDataByCid(String cid);

    List<ProductCollectDto> selectCollectProduct(String cid, Date date);

    Date findData();

    List<ProductCollectDto> selectCollectProduct2(Date date);

    List<CollectSettleAccountsDto> selectCollectSettleAccountsDtoList(String contractId, String startTime, String endTime);

    BigDecimal selectOldNumber(String contractId, String finalStartTime, Integer typeId);

    BigDecimal selectEndNumber(String contractId, String finalEndTime, Integer typeId);
}




